#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int n , sum = 0;
	scanf("%d", &n);
	int i = 0;
	int num ;
	for (i ; i <n; i++)
	{
		scanf("%d", &num);
		sum += num;
	}
	printf("%d\n", sum);
	return 0;
}

